package com.android.fragmentdemo.adapters
import com.android.fragmentdemo.databinding.RvDynamicLayout02Binding
import com.hengfoxwolf.commonbase.base.adapter.BaseRvAdapter2

class DynamicItem02Adapter :
    BaseRvAdapter2<Int, RvDynamicLayout02Binding>(RvDynamicLayout02Binding::inflate) {

    override fun bindData(holder: ViewHolder, dataItem: Int, position: Int) {
        holder.binding.itemDy02.setBackgroundColor(
            holder.binding.root.context.resources.getColor(
                dataItem
            )
        )
    }
}